gnttab: per-active entry locking
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 15 Jun 2015 11:22:07 +0000 (13:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 15 Jun 2015 11:22:07 +0000 (13:22 +0200)
commitb4650e9a96d78b87ccf7deb4f74733ccfcc64db5
tree414eb2ff0c6f9d8e37f96121fca5336045ddcc66
parentc8b630fedf285cc85b9a4834a0eb74cda7c3cca2
gnttab: per-active entry locking

Introduce a per-active entry spin lock to protect active entry state
The grant table lock must be locked before acquiring (locking) an
active entry.

This is a step in reducing contention on the grant table lock, but
will only do so once the grant table lock is turned into a read-write
lock.

Based on a patch originally by Matt Wilson <msw@amazon.com>.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
docs/misc/grant-tables.txt
xen/common/grant_table.c